package com.solidumgame.martillo.nail
{
	import com.pblabs.engine.PBE;
	import com.pblabs.engine.entity.PropertyReference;
	import com.pblabs.rendering2D.SpriteRenderer;
	
	public class NailRendererComponent extends SpriteRenderer
	{
		public function NailRendererComponent(size:int)
		{
			super();
			
			if(size == Nail.SIZE_SMALL)
				this.fileName = "../assets/SmallNail.png";
			else if(size == Nail.SIZE_MEDIUM)
				this.fileName = "../assets/MediumNail.png";
			else
				this.fileName = "../assets/LargeNail.png";
				
			this.scene = PBE.scene;
			this.layerIndex = 10;
			this.positionProperty = new PropertyReference("@Spatial.position");
			this.sizeProperty = new PropertyReference("@Spatial.size");
			this.rotationProperty = new PropertyReference("@Spatial.rotation");
			
			
		
		}
	}
}